package com.example.mylibrary.utils.commonutils;
import android.os.Looper;
import android.util.Log;

/**
 * Created by qundui on 2017/5/2.
 */
public class MyUtils {
    private static boolean isonline;
    /**
     * @return
     * 查询当前线程是不是主线程
     */
    public static Boolean isonMainThread(){
        return  Looper.myLooper()==Looper.getMainLooper();
    }
    public static void printLog(String Tag,String content){
        if (!isonline){
            Log.i(Tag,content);
        }

    }
}
